package mybatisPlugin.manager;

import mybatisPlugin.dao.UserDao;
import mybatisPlugin.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author caihe
 * @date 2022/12/16 9:52
 */
@Service
public class UserManager {
    
    @Resource
    private UserDao userDao;
    
    public Object userList() {
        return userDao.getUserName("1");
    }  
    
    public Object userList1() {
        return userDao.getUserNames("1");
    }

    public Object getUserPhone() {
        return userDao.getUserPhone("1");
    }

    public Object update() {
        User user = new User();
        user.setId(1L);
        user.setName("1111");
        user.setShopId(10);
        
        
        return userDao.update(user);
    }
}
